import heapq
def myheap():
    minheap = []
    heapq.heapify(minheap)

    heapq.heappush(minheap, 10)
    heapq.heappush(minheap, 5)
    heapq.heappush(minheap, 7)

    minheap[0]

    heapq.heappop(minheap)

    len(minheap)

    # 删除堆
    while len(minheap) != 0:
        print(heapq.heappop(minheap))

if __name__ == '__main__':
    myheap